package xiaolong.lian.entity;

public class Page {
    private String pageId;
    private int pageNum;
    private String pageUrl;
    private String docId;

    public Page(String pageId, Integer pageNum, String pageUrl, String docId) {
        this.pageId = pageId;
        this.pageNum = pageNum;
        this.pageUrl = pageUrl;
        this.docId = docId;
    }

    public String getPageId() {
        return pageId;
    }

    public void setPageId(String pageId) {
        this.pageId = pageId;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public String getPageUrl() {
        return pageUrl;
    }

    public void setPageUrl(String pageUrl) {
        this.pageUrl = pageUrl;
    }

    public String getDocId() {
        return docId;
    }

    public void setDocId(String docId) {
        this.docId = docId;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"pageId\":\"")
                .append(pageId).append('\"');
        sb.append(",\"pageNum\":")
                .append(pageNum);
        sb.append(",\"pageUrl\":\"")
                .append(pageUrl).append('\"');
        sb.append(",\"docId\":\"")
                .append(docId).append('\"');
        sb.append('}');
        return sb.toString();
    }
}
